package follow.pratice.in2020.November;

import com.sun.javafx.geom.transform.GeneralTransform3D;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;

public class Case_2 {
    public static void main(String[] args) {
        Map<Integer, String> map = new HashMap<>();
        map.put(1, "Java");
        map.put(2, "C++");
        map.put(3, "PHP");
        Set<Map.Entry<Integer, String>> entries = map.entrySet();
        Iterator<Map.Entry<Integer, String>> iterator = map.entrySet().iterator();

        while (iterator.hasNext()) {
            Map.Entry<Integer, String> next = iterator.next();
            System.out.println(next.getKey() + next.getValue());
        }

        LinkedList<Integer> list = new LinkedList<>();
        list.add(1);
        Integer integer = list.get(0);
        System.out.println(integer);


    }
}
